package com.github.permissiondog.cancanpbackend.request;

import com.github.permissiondog.cancanpbackend.model.QuestionType;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class QuestionCreateRequest {
    @NotNull(message = "模板 ID 不能为空")
    public Integer templateId;
    @Size(min = 1, max = 40, message = "标题在1-40个字符之间")
    public String title;
    @NotNull(message = "问题类型不能为空")
    public QuestionType type;
}
